'use strict';

module.exports = () => {
  const config = exports = {};
  // 日志保存级别和输出界别
  config.logger = {
    level       : 'DEBUG',
    consoleLevel: 'DEBUG',
  };
  // 登录配置
  config.zconnect = {
    serverHost: 'http://localhost:9100',
    zeehub    : {
      appId      : 'bE602o4gEgfo',
      secret     : 'pE9kylUdAOrs',
      redirectUri: 'http://localhost:9100/callback',
      publicKey  : '-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDullPgPD4qdkIw7osn7OvuNnCY\nRWt2bz11n/syZYvXE0JTrXZxuu/gP7nqpxHnJGb1cujHzZxZ+SI8LDZSNxT5TB88\nIO8bZtW8t0wKuNNRsgxv990okJqpJY7t0cG3L9FW00FqD/c0rh8Uk4IS8kULkYY0\nirJbagAPEBdfHZsHQQIDAQAB\n-----END PUBLIC KEY-----',
    },
  };
  // 数据库配置
  config.sequelize = {
    dialect : 'mysql', // support: mysql, mariadb, postgres, mssql
    database: 'zeeephrback',
    host    : 'localhost',
    port    : 3306,
    username: 'username',
    password: 'password',
  };
  // 本地关闭csrf测试
  config.security = {
    csrf: {
      enable: false,
    },
  };
  config.manager = ['1000'];
  return {
    ...config,
  };
};
